/*
** my_strcmp.c for Jour_06 in /u/all/noret_a/rendu/piscine/Jour_06
**
** Made by christophe noret
** Login   <noret_a@epitech.net>
**
** Started on  Mon Oct  8 11:08:29 2012 christophe noret
** Last update Tue Oct  9 23:04:26 2012 christophe noret
*/

int    my_strcmp(char *s1, char *s2)
{
  int    i;

  i = 0;
  while (s1 && s2 && s1[i] && s2[i] && s1[i] == s2[i])
    i++;
  if (s1[i] == '\0' && s2[i] == '\0')
    return (0);
  else
    return (s1[i] - s2[i]);
}
